//Nguyen Trung Hieu
import javax.swing.event.UndoableEditEvent;
import javax.swing.event.UndoableEditListener;

public class SimpleUEListener implements UndoableEditListener{

	private PriSecUndoRedo undoManager;
	
	public SimpleUEListener (PriSecUndoRedo undoManager){
		this.undoManager = undoManager;
	}
	
	public void undoableEditHappened(UndoableEditEvent ev) {
		undoManager.addEdit(ev.getEdit());
	}
}
